{if empty($item)}
{php $namesuffix = '-new[(itemid)]';}
{php $itemid = 'new-(itemid)';}
{php $divid = '(itemid)';}
{else}
{php $namesuffix = '[' . $item['id'] . ']';}
{php $itemid = 'option-item-' . $item['id'];}
{php $divid = 'option-item-' . $item['id'];}
{/if}


<div class="alert alert-info reply-market-list">
	<table class="tb reply-news-edit">
        <tr>
			<th>操作：</th>
			
            <td id="option-inkind">
				<span class="pull-right">
                    {if empty($item)}
                        <a href="javascript:void(0);" onclick="return doDeleteItem('{$divid}');">删除</a>
                    {else}
                        <a href="{php echo $this->createWebUrl('deleteOption', array('id' => $item['id']))}" onclick="return doDeleteItem('{$divid}', this.href);">删除</a>
                    {/if}
                </span>
                <label style="display: none;">
                    $item: {$item};
                    (itemid) (itemid);
                    $namesuffix: {$namesuffix};
                    $itemid: {$itemid};
                    $divid {$divid};
                    $item['id']: {$item['id']};
                </label>
			</td>
            
		</tr>
        <tr>
            <th>编号：</th>
            <td>
                <input type="text" value="{$item['code']}" style="width:275px;" name="option-code{$namesuffix}">
            </td>
        </tr>
        <tr>
            <th>标题：</th>
            <td>
                <input type="text" value="{$item['title']}" style="width:275px;" name="option-title{$namesuffix}">
            </td>
        </tr>

	</table>

</div>